package com.teacher.pojo.vo.department;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @Author: zfm
 * @Date: 2020/6/6 16:55
 */
@Data
public class DepartmentTreeVo {

    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    @ApiModelProperty(value = "部门名称")
    private String name;

    @ApiModelProperty(value = "部门排序")
    private Integer sort;

    @ApiModelProperty(value = "父ID")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long parentId;

    private List<DepartmentTreeVo> childList;

    private Integer status;

    private Date createTime;
}
